package com.pro.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName(value = "event")
public class Event {
    @TableId(type = IdType.AUTO)
    private Integer eventId;
    private String eventTitle;
    private LocalDate eventDate;
    private LocalDateTime eventStart;
    private LocalDateTime eventEnd;
    private Integer eventTypeId;
    private String eventNotes;
    private String eventColor;
    private Long userId;
    private Integer targetId;

    @TableField(exist = false)
    private EventType eventType;
}
